# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=xsane
pkgver=0.999
pkgrel=1
pkgdesc="Graphical SANE frontend"
url="http://www.xsane.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="sane-dev libpng-dev gtk+2.0-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="
	https://gitlab.com/sane-project/frontend/xsane/-/archive/$pkgver/xsane-$pkgver.tar.gz
	0001-libpng15.patch
"
options="!check" # no test suite provided

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7f993dc941ea5347e94ed84021de5fce32af924a10e749f517aae45b5e9623127967ad4b8bbd12d064601b9d6ea4142c5e3fe2410405b785bfb8508badeee6fe  xsane-0.999.tar.gz
e1a92665fddd744b18841b510155cd3369976f8738d2e644ce91b202b5e51d4d62e5d06fabebbad01d61b3e725f339885678d5126b3af01a834d50ecd8303e98  0001-libpng15.patch
"
